<%@ Page Title="" Language="C#" MasterPageFile="~/MainMasterPage.master" MaintainScrollPositionOnPostback="true" AutoEventWireup="true" Inherits="MarkingPeriods"  CodeBehind="~/School/MarkingPeriods.aspx.cs" meta:resourcekey="ML_0000"%>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    
    
    <script language ="javascript" type="text/javascript" >
        var T = "";
        var div2 = "";
        var div3 = "";
        var imgID = "";
        var quote = new Array();
        function OpenCloseDiv(divname1, divname2, divname3, imgId) {

            
            if (document.getElementById(divname1).style.display == 'block') {

                
                if (divname1 == "ctl00_ContentPlaceHolder1_gvFullYear_ctl02_tableFullYear") {
                    
                    document.getElementById(divname1).style.display = "none";
                    document.getElementById(imgId).src = "../App_Themes/main/images/icon_maximize.png";
                           }
                           else {

                              
                document.getElementById(divname1).style.display = "none";
                document.getElementById(divname2).style.display = "none";
                document.getElementById(divname3).style.display = "none";
                document.getElementById(imgId).src = "../App_Themes/main/images/icon_maximize.png";


            }
            var currentTagTokens = T.split(" ");
            if (currentTagTokens.length > 0) {
                T = "";
                for (var i = 0; i < currentTagTokens.length; i++) {

                    if (currentTagTokens[i] != divname1) {

                        T = T + " " + currentTagTokens[i];

                    }
                }
            }

            var currentTagTokensDiv2 = div2.split(" ");
            if (currentTagTokensDiv2.length > 0) {
                div2 = "";
                for (var i = 0; i < currentTagTokensDiv2.length; i++) {

                    if (currentTagTokensDiv2[i] != divname2) {

                        div2 = div2 + " " + currentTagTokensDiv2[i];

                    }
                }
            }

            var currentTagTokensDiv3 = div3.split(" ");
            if (currentTagTokensDiv3.length > 0) {
                div3 = "";
                for (var i = 0; i < currentTagTokensDiv3.length; i++) {

                    if (currentTagTokensDiv3[i] != divname3) {

                        div3 = div3 + " " + currentTagTokensDiv3[i];

                    }
                }
            }

            var currentTagTokensimg = imgID.split(" ");
            if (currentTagTokensimg.length > 0) {
                imgID = "";
                for (var i = 0; i < currentTagTokensimg.length; i++) {

                    if (currentTagTokensimg[i] != imgId) {

                        imgID = imgID + " " + currentTagTokensimg[i];

                    }
                }
            }
                
            }
            else {

                T = T + " " + divname1;
                div2 = div2 + " " + divname2;
                div3 = div3 + " " + divname3;
                imgID = imgID + " " + imgId;
//                alert('TestEnd');
                document.getElementById(divname1).style.display = 'block';
                document.getElementById(divname2).style.display = 'block';
                document.getElementById(divname3).style.display = 'block';
                document.getElementById(imgId).src = "../App_Themes/main/images/icon_minimize.png";
            }
          

        }

        function OpenDiv() {

           
            var currentTagTokens = T.split(" ");
            var currentTagTokensDiv2 = div2.split(" ");
            var currentTagTokensDiv3 = div3.split(" ");
            var currentTagTokensimg = imgID.split(" ");
            for (var i = 0; i < currentTagTokens.length; i++) {
                var divname1 = currentTagTokens[i];
                var divname2 = currentTagTokensDiv2[i];
                var divname3 = currentTagTokensDiv3[i];
                var imgId = currentTagTokensimg[i];

             
               
                if (divname1 != "") {
                    if (document.getElementById(divname1) != null) {
                        document.getElementById(divname1).style.display = 'block';
                    }
                    if (document.getElementById(divname2) != null) {
                        document.getElementById(divname2).style.display = 'block';
                    }
                    if (document.getElementById(divname3) != null) {
                        document.getElementById(divname3).style.display = 'block';
                    }
                    if (document.getElementById(imgId) != null) {
                        document.getElementById(imgId).src = "../App_Themes/main/images/icon_minimize.png";
                    }
                    
                }
           }
          
        }
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(OpenDiv);
       
    </script>

    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td valign="top" class="idle">
                
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td class="page_heading_black">
                                <asp:Label CssClass="blue_mid" ID="lblFoundCount" runat="server" meta:resourcekey="lblFoundCount"></asp:Label>
                                <asp:Label ID="lblmessage" runat="server" meta:resourcekey="lblmessage"></asp:Label>
                            </td>
                            <td align="right">
                                <table border="0" cellspacing="0" cellpadding="0">
                                    <%--<tr>--%>
                                        <%--<td>
                                            <asp:ImageButton ID="ibtnAdd" CausesValidation="false" runat="server" 
                                               ImageUrl="~/App_Themes/main/images/add.png" />
                                        </td>--%>
                                        <%--<td>
                                        <asp:Image ID="separator1" runat="server" ImageUrl="~/App_Themes/main/images/icon_separator.png" />                    
                                        </td>--%>
                                        <%--<td>
                                            <asp:ImageButton ID="ibtnEdit" runat="server" 
                                                ImageUrl="~/App_Themes/main/images/edit.png" CausesValidation="False" onclick="ibtnEdit_Click" 
                                                 />
                                        </td>--%>
                                        <%--<td>
                                             <asp:Image ID="separator2" runat="server" ImageUrl="~/App_Themes/main/images/icon_separator.png" />
                                        </td>--%>
                                        <%--<td>
                                            <asp:ImageButton ID="ibtnDelete" runat="server"  OnClientClick="if(!confirm('Are you sure ?')){return false;}" ImageUrl="~/App_Themes/main/images/delete.png" onclick="ibtnDelete_Click" CausesValidation="False" />
                                        </td>--%>
                                        <%--<td>
                                             <asp:Image ID="separator3" runat="server" ImageUrl="~/App_Themes/main/images/icon_separator.png" />
                                        </td>--%>
                                        <%--<td>
                                            <asp:ImageButton ID="ibtnDownLoadExcel" runat="server"  ImageUrl="~/App_Themes/main/images/download_excel.png" />
                                        </td>--%>
                                    <%--</tr>--%>
                                </table>
                            </td>
                        </tr>
                    </table>


                    <div>
                    <asp:Panel ID="panel_Popup" runat="server" Style="display: none" CssClass="ModalPopup" Width="600" Height="338">
                    <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="modal_header_left bottom_black">&nbsp;</td>
                        <td class="modal_header_bg" valign="top"><div class="modal_header">
                            <asp:Literal ID="Literal7" runat="server" meta:resourcekey="ML_0008">Add Marking Period</asp:Literal>
                        </div></td>
                    </tr>
                    <tr>
                        <td class="modal_rtgrey">&nbsp;</td>
                        <td class="modal_bg"> 
                        <div style="overflow:auto; overflow-x:hidden; width:540px; height:230px;">
                        <table border="0" cellspacing="0" cellpadding="3">
                        <asp:HiddenField ID="hdns" runat="server"  />
                            <tr>
                                <td>
                                 <asp:Literal ID="ML_0001" runat="server" meta:resourcekey="ML_0001">Title</asp:Literal>
                                
                                   
                                </td>
                                <td valign="top">
                                    :
                                </td>
                                <td class="blue" colspan="2">
                                    <asp:TextBox ID="txtTitle" runat="server" MaxLength="25" meta:resourcekey="txtTitle"></asp:TextBox>
                                </td>
                                <td align="left"><asp:RequiredFieldValidator ID="RFTitle" runat="server" ControlToValidate="txtTitle"
                                        ErrorMessage="<div class='alert' align='left'>Title is required</div>" Display="Dynamic" ValidationGroup="vgAddMPrd" meta:resourcekey="RFTitle"></asp:RequiredFieldValidator>
                                 <asp:RegularExpressionValidator ID="regExMPrdTitle" runat="server" ControlToValidate="txtTitle" ErrorMessage="<div class='alert' align='left'>Title should not contain underscore </div>" ValidationExpression="^[^_]+$"   Display="Dynamic" ValidationGroup="vgAddMPrd" meta:resourcekey="regExMPrdTitle"></asp:RegularExpressionValidator></td>
                            </tr>
                            <tr>
                                <td>
                                
                                <asp:Literal ID="Literal1" runat="server" meta:resourcekey="ML_0002">Short Name</asp:Literal>
                                    
                                </td>
                                <td valign="top">
                                    :
                                </td>
                                <td class="blue" colspan="2">
                                    <asp:TextBox ID="txtShortName" runat="server" MaxLength="5" meta:resourcekey="txtShortName"></asp:TextBox>
                                </td>
                                <td align="left"><asp:RequiredFieldValidator ID="RFShortName" runat="server" ControlToValidate="txtShortName"
                                        ErrorMessage="<div class='alert' align='left'>ShortName is required</div>" Display="Dynamic" ValidationGroup="vgAddMPrd" meta:resourcekey="RFShortName"></asp:RequiredFieldValidator>
                                        
                                            
                                        </td>
                            </tr>
                            <tr>
                                <td>
                                
                                 <asp:Literal ID="Literal2" runat="server" meta:resourcekey="ML_0003">Begin Date</asp:Literal>
                                   
                                    
                                </td>
                                <td valign="top">
                                    :
                                </td>
                                <td class="blue">
                                    <asp:TextBox ID="txtBegins" runat="server" meta:resourcekey="txtBegins"></asp:TextBox>
                                </td>
                                <td valign="top">
                                 <asp:ImageButton ID="calImg1" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
  CausesValidation="false" AlternateText="Select Start Date" runat="server" meta:resourcekey="calImg1"/><cc1:CalendarExtender ID="CalExtStartDate" runat="server" PopupButtonID="calImg1" TargetControlID="txtBegins" OnClientDateSelectionChanged="checkStartDateMark" ></cc1:CalendarExtender>
                                </td>
                                <td align="left">
                                <asp:RequiredFieldValidator ID="RFVtxtbegins" runat="server" ControlToValidate="txtBegins" ErrorMessage="<div class='alert' align='left'>Begin Date is Required</div>"
                                        Display="Dynamic" ValidationGroup="vgAddMPrd" meta:resourcekey="RFVtxtbegins"></asp:RequiredFieldValidator>
                                
                                
                              
                                        
                                        </td>
                            </tr>
                            <tr>
                                <td>
                                 <asp:Literal ID="Literal3" runat="server" meta:resourcekey="ML_0004">End Date</asp:Literal>
                                 
                                
                                  
                                </td>
                                <td valign="top">
                                    :
                                </td>
                                <td class="blue">
                                    <asp:TextBox ID="txtEnds" runat="server" meta:resourcekey="txtEnds"></asp:TextBox>
                                   
                                </td>
                                <td valign="top">
                                
                                <asp:ImageButton ID="imgenddate" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
CausesValidation="false" AlternateText="Select Start Date" runat="server" meta:resourcekey="imgenddate"/><cc1:CalendarExtender ID="CalExtEndDate" runat="server" PopupButtonID="imgenddate" TargetControlID="txtEnds" OnClientDateSelectionChanged="checkEndDateMark"></cc1:CalendarExtender>
                                </td>
                                <td align="left">
                                
                                 <asp:RequiredFieldValidator ID="RFVtxtEnd" runat="server" ControlToValidate="txtEnds" ErrorMessage="<div class='alert' align='left'>End Date is Required</div>" Display="Dynamic" ValidationGroup="vgAddMPrd" meta:resourcekey="RFVtxtEnd"></asp:RequiredFieldValidator>
                                 
                                 
                          
                                </td>
                            </tr>
                            <tr>
                                <td>
                                
                                 <asp:Literal ID="Literal4" runat="server" meta:resourcekey="ML_0005"> Grade Posting Begins</asp:Literal>
                                 
                                   
                                </td>
                                <td valign="top">
                                    :
                                </td>
                                <td class="blue">
                                    <asp:TextBox ID="txtGPBegins" runat="server" meta:resourcekey="txtGPBegins"></asp:TextBox>
                                </td>
                                <td valign="top">
                                                                                        <asp:ImageButton ID="imgbtnGPBegins" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
                                                                                            CausesValidation="false" AlternateText="Select Start Date" runat="server" meta:resourcekey="imgbtnGPBegins"/><cc1:CalendarExtender ID="CalExtGPBegins" runat="server" PopupButtonID="imgbtnGPBegins" TargetControlID="txtGPBegins" ></cc1:CalendarExtender>
                                                                                      
                                </td>
                                <td></td>
                                
                            </tr>
                            <tr>
                                <td>
                                   <asp:Literal ID="Literal5" runat="server" meta:resourcekey="ML_0006">Grade Posting Ends</asp:Literal>
                                
                                  
                                </td>
                                <td valign="top">
                                    :
                                </td>
                                <td class="blue">
                                    <asp:TextBox ID="txtGPEnds" runat="server" meta:resourcekey="txtGPEnds"></asp:TextBox>
                                </td>
                                <td valign="top">
                                                                                        <asp:ImageButton ID="imgbtnGPEnds" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
                                                                                            CausesValidation="false" AlternateText="Select Start Date" runat="server" meta:resourcekey="imgbtnGPEnds"/><cc1:CalendarExtender ID="CalExtGPEnds" runat="server" PopupButtonID="imgbtnGPEnds" TargetControlID="txtGPEnds"></cc1:CalendarExtender>
                                                                                      
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>
                                  <asp:Literal ID="Literal6" runat="server" meta:resourcekey="ML_0007">Graded</asp:Literal>
                                  
                                </td>
                                <td valign="top">
                                    :
                                </td>
                                <td class="blue" colspan="2">
                                    <asp:CheckBox ID="chkGrade" runat="server" meta:resourcekey="chkGrade"/>
                                </td>
                                <td></td>
                            </tr>
                        </table></div>
                        
                        <div class="separator_hor"></div>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td align="right">
                                        <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="modalbtn_active" 
                                            onclick="btnSave_Click" ValidationGroup="vgAddMPrd" meta:resourcekey="btnSave"/>
                                        <asp:Button ID="btnAddCancel" CausesValidation="false" runat="server" Text="Cancel" CssClass="modalbtn_active" onclick="btnAddCancel_Click" meta:resourcekey="btnAddCancel" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_ModalPopupExtender1')"/>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    </table>
                        
                        
                    </asp:Panel>
                    <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" BackgroundCssClass="Inactive"
                        TargetControlID="hdnopenModal" PopupControlID="panel_Popup" Enabled="false"/>
                        
                    <asp:Panel ID="panel_Popup_Edit" runat="server" style="display:none;" CssClass="ModalPopup" Width="600" Height="338">
                    <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="modal_header_left bottom_black">&nbsp;</td>
                        <td class="modal_header_bg" valign="top"><div class="modal_header">
                          <asp:Literal ID="Literal8" runat="server" meta:resourcekey="ML_0009">Edit Marking Period</asp:Literal>
                        </div></td>
                    </tr>
                    <tr>
                        <td class="modal_rtgrey">&nbsp;</td>
                        <td class="modal_bg"> 
                    <div style="overflow:auto; overflow-x:hidden; width:540px; height:230px;">
                        <table border="0" cellspacing="0" cellpadding="3" width="100%">
                            <tr>
                                <td>
                                 <asp:Literal ID="Literal9" runat="server" meta:resourcekey="ML_0001">Title</asp:Literal>
                                    
                                </td>
                                <td valign="top" class="colon">
                                    :
                                </td>
                                <td class="blue" colspan="2">
                                    <asp:TextBox ID="txtTitleEdit" runat="server" MaxLength="25" meta:resourcekey="txtTitleEdit"></asp:TextBox>
                                </td>
                                <td align="left"><asp:RequiredFieldValidator ID="RFTitle1" runat="server" ControlToValidate="txtTitleEdit"
                                        ErrorMessage="<div class='alert' align='left'>Title is required</div>" Display="Dynamic" ValidationGroup="vgEditMPrd" meta:resourcekey="RFTitle1"></asp:RequiredFieldValidator>
                                       <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtTitleEdit" ErrorMessage="<div class='alert' align='left'>Title should not contain underscore</div>" ValidationExpression="^[^_]+$"  Display="Dynamic" ValidationGroup="vgEditMPrd" meta:resourcekey="RegularExpressionValidator1"></asp:RegularExpressionValidator></td>
                            </tr>
                            <tr>
                                <td>
                                  <asp:Literal ID="Literal10" runat="server" meta:resourcekey="ML_0002">Short Name</asp:Literal>
                                
                                    
                                </td>
                                <td valign="top" class="colon">
                                    :
                                </td>
                                <td class="blue" align="left" colspan="2">
                                    <asp:TextBox ID="txtShortNameEdit" runat="server" MaxLength="5" meta:resourcekey="txtShortNameEdit"></asp:TextBox>
                                </td>
                                <td align="left"><asp:RequiredFieldValidator ID="RFShortName1" runat="server" ControlToValidate="txtShortNameEdit"
                                        ErrorMessage="<div class='alert' align='left'>ShortName is required</div>" Display="Dynamic" ValidationGroup="vgEditMPrd" meta:resourcekey="RFShortName1"></asp:RequiredFieldValidator>
                                       
                                        
                                        
                                        
                                        
                                        </td>
                            </tr>
                            <tr>
                                <td>
                                
                                <asp:Literal ID="Literal11" runat="server" meta:resourcekey="ML_0003">Begin Date</asp:Literal>
                                   
                                </td>
                                <td valign="top" class="colon">
                                    :
                                </td>
                                <td class="blue" align="left">
                                    <asp:TextBox ID="txtBeginsEdit" runat="server" meta:resourcekey="txtBeginsEdit"></asp:TextBox>
                                </td>
                                <td valign="top" align="left">
                                                                                        <asp:ImageButton ID="imgbtnBeginsEdit" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
                                                                                            CausesValidation="false" AlternateText="Select Start Date" runat="server" meta:resourcekey="imgbtnBeginsEdit"/><cc1:CalendarExtender ID="CalExtBeginsEdit" runat="server" PopupButtonID="imgbtnBeginsEdit" TargetControlID="txtBeginsEdit"  OnClientDateSelectionChanged="checkStartDateEditMark"></cc1:CalendarExtender>
                                                                                      
                                </td>
                                <td valign="top">
                                
                                <%--<asp:CompareValidator ID="CVSBegins1" runat="server" Type="Date" Operator="LessThanEqual"
                                        ErrorMessage="<div class='alert' align='left'>Begin Date can't be after End Date</div>"
                                        Display="Dynamic" ControlToCompare="txtEndsEdit" ControlToValidate="txtBeginsEdit" ValidationGroup="vgEditMPrd" meta:resourcekey="CVSBegins1"></asp:CompareValidator>--%>
                                        
                                        
                                        </td>
                            </tr>
                            <tr>
                                <td>
                                  <asp:Literal ID="Literal12" runat="server" meta:resourcekey="ML_0004">End Date</asp:Literal>
                                
                                    
                                </td>
                                <td valign="top" class="colon">
                                    :
                                </td>
                                <td class="blue" align="left" style="width:120px;">
                                    <asp:TextBox ID="txtEndsEdit" runat="server" meta:resourcekey="txtEndsEdit"></asp:TextBox>
                                </td>
                                <td valign="top" align="left" style="width:24px;">
                                                                                        <asp:ImageButton ID="imgbtnEndsEdit" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
                                                                                            CausesValidation="false" AlternateText="Select Start Date" runat="server" meta:resourcekey="imgbtnEndsEdit"/><cc1:CalendarExtender ID="CalExtEndsEdit" runat="server" PopupButtonID="imgbtnEndsEdit" TargetControlID="txtEndsEdit" OnClientDateSelectionChanged="checkEndDateEditMark"></cc1:CalendarExtender>
                                                                                      
                                </td>
                                <td align="left" style="width:120px;" valign="top">
                                
                              <%--  <asp:CompareValidator ID="CVSEnds1" runat="server" Type="Date" Operator="GreaterThanEqual"
                                        ErrorMessage="<div class='alert' align='left'>Invalid Date Format</div>"
                                        Display="None" ControlToCompare="txtBeginsEdit" ControlToValidate="txtEndsEdit" ValidationGroup="vgEditMPrd" meta:resourcekey="CVSEnds1"></asp:CompareValidator>--%>
                                        
                                        </td>
                            </tr>
                            <tr>
                                <td>
                                 <asp:Literal ID="Literal13" runat="server" meta:resourcekey="ML_0005">Grade Posting Begins</asp:Literal>
                                
                                   
                                </td>
                                <td valign="top" class="colon">
                                    :
                                </td>
                                <td class="blue" align="left">
                                    <asp:TextBox ID="txtGPBeginsEdit" runat="server" meta:resourcekey="txtGPBeginsEdit"></asp:TextBox>
                                </td>
                                <td valign="top" align="left">
                                                                                        <asp:ImageButton ID="imgbtnGPBeginsEdit" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
                                                                                            CausesValidation="false" AlternateText="Select Start Date" runat="server" meta:resourcekey="imgbtnGPBeginsEdit"/><cc1:CalendarExtender ID="CalExtGPBeginsEdit" runat="server" PopupButtonID="imgbtnGPBeginsEdit" TargetControlID="txtGPBeginsEdit"></cc1:CalendarExtender>
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>
                                <asp:Literal ID="Literal14" runat="server" meta:resourcekey="ML_0006">Grade Posting Ends</asp:Literal>
                                
                                
                                    
                                </td>
                                <td valign="top" class="colon">
                                    :
                                </td>
                                <td class="blue" align="left">
                                    <asp:TextBox ID="txtGPEndsEdit" runat="server" meta:resourcekey="txtGPEndsEdit"></asp:TextBox>
                                </td>
                                <td valign="top" align="left">
                                                                                        <asp:ImageButton ID="imgbtnGPEndsEdit" ImageUrl="~/App_Themes/main/imagescalendar/calendar.png"
                                                                                            CausesValidation="false" AlternateText="Select Start Date" runat="server" meta:resourcekey="imgbtnGPEndsEdit"/><cc1:CalendarExtender ID="CalExtGPEndsEdit" runat="server" PopupButtonID="imgbtnGPEndsEdit" TargetControlID="txtGPEndsEdit"></cc1:CalendarExtender>
                                                                                      
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>
                                <asp:Literal ID="Literal15" runat="server" meta:resourcekey="ML_0007">Graded</asp:Literal>
                                
                                    
                                </td>
                                <td valign="top" class="colon">
                                    :
                                </td>
                                <td class="blue" align="left">
                                    <asp:CheckBox ID="chkGradeEdit" runat="server" meta:resourcekey="chkGradeEdit"/>
                                </td>
                                <td colspan="3">&nbsp;</td>
                            </tr>
                        </table></div>
                        
                        <div class="separator_hor"></div>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td align="right">
                                        <asp:Button ID="btnUpdate" runat="server"  Text="Update" CssClass="modalbtn_active" 
                                            onclick="btnUpdate_Click" ValidationGroup="vgEditMPrd" meta:resourcekey="btnUpdate"/>
                                        <asp:Button ID="btnCancelEdit" CausesValidation="false" runat="server" 
                                            Text="Cancel" CssClass="modalbtn_active" onclick="btnCancelEdit_Click" meta:resourcekey="btnCancelEdit" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_ModalPopupExtender2')"/>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    </table>
                        
                        
                    </asp:Panel>
                    
                     <cc1:ModalPopupExtender ID="ModalPopupExtender2" runat="server" BackgroundCssClass="Inactive"
                        TargetControlID="hdnopenModal" PopupControlID="panel_Popup_Edit" Enabled="false" />   
                  
                <asp:HiddenField ID="hdnopenModal" runat="server" />
            
            <asp:GridView ID="gvFullYear" BackColor="Transparent" 
                                OnRowDataBound="gvFullYear_RowDataBound" runat="server" 
                                AutoGenerateColumns="false" GridLines="None" Width="100%" 
                            ShowHeader="false" ShowFooter="False" BorderWidth="0" 
                            onrowcommand="gvFullYear_RowCommand">
           
            <Columns>
            
                
                <asp:TemplateField ItemStyle-Width="100%">
                    <ItemTemplate>
              
                    
                        <table align="left" width="100%" runat="server" cellpadding="0" cellspacing="0" border="0">
                            
                            <tr>
                                <td align="left">
                                     <asp:HiddenField ID="hdnSchyrIdfullyear" runat="server" Value='<%#Eval("schyr_id")%>'/>
                                     <asp:HiddenField ID="hdnMPId" runat="server" Value='<%#Eval("sch_marking_period_id")%>'/>
                                        <table width="100%" cellpadding="0" cellspacing="0">
                                            <tr>
                                               <td rowspan="2" class="notes_left_content" valign="top">
                                                <img src="~/App_Themes/main/images/icon_minimize.png" id="imgFullYear"  style="cursor:pointer;" runat="server" />
                                               </td>
                                               <td>
                                                    <table border="0" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                                <td valign="top">
                                                                    <div class="b_les_blue">
                                                                    
                                                                    <table align="left">
                                                                        <tr>
                                                                            <%--<td valign="top" align="left">
                                                                            <asp:CheckBox ID="chk" runat="server" />
                                                                            </td>--%>
                                                                            <td align="left" class="white_strong">
                                                                            
                                                                            <asp:Label ID="lblFullYear" CssClass="white_strong" runat="server" Text='<%#Eval("sch_mp_name")%>'></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                    </table></div>
                                                                </td>
                                                                <td align="left" class="padding_gen_small"> 
                                                                    <table border="0" id="tableFullYearIcons" runat="server" cellspacing="0" cellpadding="0" align="left">
                                                                    <tr>
                                                                        <td>
                                                                            <asp:ImageButton ID="ibtnAdd" CausesValidation="false" runat="server" 
                                                                               ImageUrl="~/App_Themes/main/images/add.png" CommandName="AddSemester" CommandArgument='<%# Eval("schyr_id").ToString() %>'/>
                                                                        </td>
                                                                        <td>
                                                                        <asp:Image ID="separator1" runat="server" ImageUrl="~/App_Themes/main/images/icon_separator.png" />                    
                                                                        </td>
                                                                        <td>
                                                                            <asp:ImageButton ID="ibtnEdit" runat="server" 
                                                                                ImageUrl="~/App_Themes/main/images/edit.png" CausesValidation="False"  CommandName="EditFullYearRecords" CommandArgument='<%# Eval("sch_marking_period_id").ToString() + "_" + Eval("schyr_id").ToString() %>' 
                                                                                 />
                                                                        </td>
                                                                        <td>
                                                                             <asp:Image ID="separator2" runat="server" ImageUrl="~/App_Themes/main/images/icon_separator.png" />
                                                                        </td>
                                                                        <td>
                                                                            <asp:ImageButton ID="ibtnDelete" runat="server"  OnClientClick="if(!confirm('Are you sure ?')){return false;}" ImageUrl="~/App_Themes/main/images/delete.png" CausesValidation="False" CommandName="DeleteFullYear" CommandArgument='<%# Eval("sch_marking_period_id").ToString() + "_" + Eval("schyr_id").ToString() + "_" + Eval("sch_mp_name").ToString() %>' />
                                                                        </td>
                                                                        <%--<td>
                                                                             <asp:Image ID="separator3" runat="server" ImageUrl="~/App_Themes/main/images/icon_separator.png" />
                                                                        </td>--%>
                                                                        <%--<td>
                                                                            <asp:ImageButton ID="ibtnDownLoadExcel" runat="server"  ImageUrl="~/App_Themes/main/images/download_excel.png" />
                                                                        </td>--%>
                                                                    </tr>
                                                                </table>
                                                                </td>
                                                            </tr>
                                                    </table>
                                               </td>
                                            </tr>
                                            <tr>
                                               <td class="notes_blue_content">
                                                <table cellpadding="5" width="75%" id="tableFullYearDetails" runat="server" cellspacing="0" align="left">
                                                    <tr>
                                                        <td>
                                                         <asp:Literal ID="Literal15fullyear" runat="server" meta:resourcekey="ML_0001">Title</asp:Literal>
                                                        
                                                          

                                                       </td>
                                                        <td class="colon">
                                                            :
                                                        </td>
                                                        <td>
                                                    <asp:Label CssClass="blue_mid" ID="lblSchMPName" runat="server" Text='<%#Eval("sch_mp_name")%>'></asp:Label>
                                                        </td>
                                                        <td>
                                                        
                                                        <asp:Literal ID="Literal16fullyear" runat="server" meta:resourcekey="ML_0002">Short Name</asp:Literal>
                                                        
                                                        
                                                          

                                                       </td>
                                                        <td>
                                                            :
                                                        </td>
                                                        <td>
                                                    <asp:Label CssClass="blue_mid" ID="lblShortName" runat="server" Text='<%#Eval("sch_mp_short_nm")%>'></asp:Label>  
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                       <td>
                                                       
                                                              
                                                        <asp:Literal ID="Literal17" runat="server" meta:resourcekey="ML_0003"> Begin Date</asp:Literal>
                                                       
                                                         
                                                       </td>
                                                       <td>
                                                           :
                                                       </td>
                                                       <td>
                                                           <asp:Label CssClass="blue_mid" ID="lblBeginsDate" runat="server" Text='<%#Eval("sch_mp_start_date") %>'></asp:Label>
                                                       </td>
                                                       <td>
                                                       
                                                         <asp:Literal ID="Literal18" runat="server" meta:resourcekey="ML_0004">End Date</asp:Literal>
                                                       
                                                      
                                                       </td>
                                                       <td>
                                                       :
                                                       </td>
                                                       <td>
                                                        <asp:Label CssClass="blue_mid" ID="lblEndDate" runat="server" Text='<%#Eval("sch_mp_end_date")%>'></asp:Label>
                                                       </td>
                                                    </tr>
                                                    <tr>
                                                       <td>
                                                       
                                                        <asp:Literal ID="Literal19" runat="server" meta:resourcekey="ML_0005">Grade Posting Begins</asp:Literal>
                                                       
                                                       
                                                         
                                                       </td>
                                                       <td>
                                                       :
                                                       </td>
                                                       <td>
                                                        <asp:Label CssClass="blue_mid" ID="lblGPBeginsDate" runat="server" Text='<%#Eval("sch_mp_grd_start_date")%>'></asp:Label>
                                                       </td>
                                                       <td>
                                                        <asp:Literal ID="Literal20" runat="server" meta:resourcekey="ML_0006">Grade Posting Ends</asp:Literal>
                                                       
                                                       
                                                       </td>
                                                       <td>
                                                          :
                                                       </td>
                                                       <td>
                                                       <asp:Label CssClass="blue_mid" ID="lblGPEndDate" runat="server" Text='<%#Eval("sch_mp_grd_end_date")%>'></asp:Label>
                                                         
                                                       </td>  
                                                    </tr>
                                                    <tr>
                                                       <td>
                                                       
                                                         <asp:Literal ID="Literal21" runat="server" meta:resourcekey="ML_0007">Graded</asp:Literal>
                                                       
                                                       
                                                        
                                                       </td>
                                                       <td>
                                                          :
                                                       </td>
                                                       <td>
                                                       <asp:HiddenField ID="hdnChkGrade" runat="server" Value='<%#Eval("sch_mp_grading_ind")%>' />
                                                       <asp:CheckBox ID="Chkgradefullyear" runat="server" Enabled="false" meta:resourcekey="Chkgrade"/> 
                                                       </td> 
                                                       <td colspan="3"></td> 
                                                    </tr>
                                                </table>
                                               </td>
                                            </tr>
                                            <tr><td colspan="2" class="separator_ver_notes">
                                        <div class="clear_medium"></div>
                                        </td></tr>
                                        </table>
                                        
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                 <table width="100%" id="tableFullYear" runat="server" cellpadding="0" cellspacing="0" border="0" >
                                 <tr>
                                    <td class="separator_ver_notes">
                                    <asp:GridView ID="gvLevel1" BackColor="Transparent" runat="server" 
                                            AutoGenerateColumns="false"  OnRowDataBound="gvLevel1_RowDataBound" 
                                            GridLines="None" BorderWidth="0" Width="100%" CellPadding="0" CellSpacing="0" 
                                            ShowHeader="false" ShowFooter="False" onrowcommand="gvLevel1_RowCommand">
                                        <Columns>
                                          
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                
                                                
                                                
                                                    <table align="left" width="100%" cellpadding="0" cellspacing="0" border="0">
                                                        <tr>
                                                            
                                                            <td align="right">
                                                                <asp:HiddenField ID="hdnSchyrIdlevel1" runat="server" Value='<%#Eval("schyr_id")%>'/>
                                                                <asp:HiddenField ID="hdnMPIdlevel1" runat="server" Value='<%#Eval("sch_marking_period_id")%>'/>
                                                                
                                                                <table width="100%" cellpadding="0" cellspacing="0">
                                                                <tr><td align="left" valign="top" width="10%">
                                                                    <table width="100%" cellpadding="0" cellspacing="0">
                                                                   <tr>
                                                                        <td class="separator_hor_notes">
                                                                            &nbsp;
                                                                        </td>
                                                                   </tr> 
                                                                </table>                                                                
                                                                </td>
                                                                <td width="90%">
                                                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                                                    <tr>
                                                                        <td rowspan="2" class="notes_left_content2" valign="top">
                                                                           <img id="imgLevel1" runat="server" src="~/App_Themes/main/images/icon_minimize.png" style="cursor:pointer;"  />
                                                                        </td>
                                                                        <td align="left">
                                                                            <table border="0" cellpadding="0" cellspacing="0">
                                                                                <tr>
                                                                                    <td class="b_les_grey">
                                                                                    <table align="left">
                                                                                    <tr>
                                                                                        <td valign="top" align="left">
                                                                                        <%--<asp:CheckBox ID="chk" runat="server" />--%>
                                                                                       
                                                                                        <asp:Label CssClass="white_strong" ID="lblLevel1" runat="server" Text='<%#Eval("sch_mp_name")%>'></asp:Label>
                                                                                        </td>
                                                                                    </tr>
                                                                            </table>
                                                                        </td>
                                                    <td align="left" class="padding_gen_small">
                                                        <table border="0" id="tableLevel1Icons" runat="server" cellspacing="0" cellpadding="0" align="left" >
                                                                    <tr>
                                                                        <td>
                                                                            <asp:ImageButton ID="ibtnAddlevel1" CausesValidation="false" runat="server" 
                                                                               ImageUrl="~/App_Themes/main/images/add.png" CommandName="AddQuarter" CommandArgument='<%# Eval("schyr_id").ToString() %>'/>
                                                                        </td>
                                                                        <td>
                                                                        <asp:Image ID="separator1level1" runat="server" ImageUrl="~/App_Themes/main/images/icon_separator.png" />                    
                                                                        </td>
                                                                        <td>
                                                                            <asp:ImageButton ID="ibtnEditlevel1" runat="server" ImageUrl="~/App_Themes/main/images/edit.png" CausesValidation="False" CommandName="EditSemesterRecords" CommandArgument='<%# Eval("sch_marking_period_id").ToString() + "_" + Eval("schyr_id").ToString() %>'/>
                                                                        </td>
                                                                        <td>
                                                                             <asp:Image ID="separator2level1" runat="server" ImageUrl="~/App_Themes/main/images/icon_separator.png" />
                                                                        </td>
                                                                        <td>
                                                                            <asp:ImageButton ID="ibtnDeletelevel1" runat="server"  OnClientClick="if(!confirm('Are you sure ?')){return false;}" ImageUrl="~/App_Themes/main/images/delete.png" CausesValidation="False" CommandName="DeleteSemester" CommandArgument='<%# Eval("sch_marking_period_id").ToString() + "_" + Eval("schyr_id").ToString() + "_" + Eval("sch_mp_name").ToString()%>'/>
                                                                        </td>
                                                                        <%--<td>
                                                                             <asp:Image ID="separator3" runat="server" ImageUrl="~/App_Themes/main/images/icon_separator.png" />
                                                                        </td>--%>
                                                                        <%--<td>
                                                                            <asp:ImageButton ID="ibtnDownLoadExcel" runat="server"  ImageUrl="~/App_Themes/main/images/download_excel.png" />
                                                                        </td>--%>
                                                                    </tr>
                                                                </table>
                                                    </td>
                                                </tr>
                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="grey_b_content">  
                                                                         <table align="left" width="85%" id="tableLevel1Details" runat="server" cellpadding="5" cellspacing="0" class="padding_gen_small" >
                            <tr>
                                <td class="rcontent">
                                
                                 <asp:Literal ID="Literal25level1" runat="server" meta:resourcekey="ML_0001">Title</asp:Literal>
                                
                                  

                               </td>
                                <td>
                                    :
                                </td>
                                <td class="rcontent">
                            <asp:Label CssClass="blue_mid" ID="lblSchMPNamelevel1" runat="server" Text='<%#Eval("sch_mp_name")%>'></asp:Label>                          
                                </td>
                                <td class="rcontent">
                                <asp:Literal ID="Literal24level1" runat="server" meta:resourcekey="ML_0002">Short Name</asp:Literal>
                                
                                

                               </td>
                                <td>
                                    :
                                </td>
                                <td class="rcontent">
                            <asp:Label CssClass="blue_mid" ID="lblShortNamelevel1" runat="server" Text='<%#Eval("sch_mp_short_nm")%>'></asp:Label>                  
                                </td>
                            </tr>
                            <tr>
                               <td>
                               <asp:Literal ID="Literal23level1" runat="server" meta:resourcekey="ML_0003">Begin Date</asp:Literal>
                               
                                 
                               </td>
                               <td>
                                   :
                               </td>
                               <td>
                                   <asp:Label CssClass="blue_mid" ID="lblBeginsDatelevel1" runat="server" Text='<%#Eval("sch_mp_start_date") %>'></asp:Label>
                                  
                                   
                               </td>
                               <td>
                                <asp:Literal ID="Literal22level1" runat="server" meta:resourcekey="ML_0004">End Date</asp:Literal>
                               
                               
                              
                               </td>
                               <td>
                               :
                               </td>
                               <td>
                                <asp:Label CssClass="blue_mid" ID="lblEndDatelevel1" runat="server" Text='<%#Eval("sch_mp_end_date")%>'></asp:Label>
                                 
                               </td>
                            </tr>
                            <tr>
                               <td>
                                 <asp:Literal ID="Literal19level1" runat="server" meta:resourcekey="ML_0005">Grade Posting Begins</asp:Literal>
                               
                                 
                               </td>
                               <td>
                               :
                               </td>
                               <td>
                                <asp:Label CssClass="blue_mid" ID="lblGPBeginsDatelevel1" runat="server" Text='<%#Eval("sch_mp_grd_start_date")%>'></asp:Label>
                               </td>
                               <td>
                                <asp:Literal ID="Literal20level1" runat="server" meta:resourcekey="ML_0006">Grade Posting Ends</asp:Literal>
                               
                              
                               </td>
                               <td>
                                  :
                               </td>
                               <td>
                               <asp:Label CssClass="blue_mid" ID="lblGPEndDatelevel1" runat="server" Text='<%#Eval("sch_mp_grd_end_date")%>'></asp:Label>
                              
                               </td>  
                            </tr>
                            <tr>
                               <td>
                                 <asp:Literal ID="Literal21level1" runat="server" meta:resourcekey="ML_0007">Graded</asp:Literal>
                                
                               </td>
                               <td>
                                  :
                               </td>
                               <td>
                               <asp:HiddenField ID="hdnChkGradelevel1" runat="server" Value='<%#Eval("sch_mp_grading_ind")%>' />
                               <asp:CheckBox ID="Chkgradelevel1" runat="server" Enabled="false" meta:resourcekey="Chkgrade"/> 
                               </td>
                               <td colspan="3"></td> 
                            </tr>
                              </table>
                                                                    </td>
                                                                    </tr>
                                                                    <tr><td colspan="2" class="separator_ver_notes">
                                                                <div class="clear_medium"></div>
                                                                </td></tr>
                                                                 </table>
                                                                </td>
                                                                </tr>
                                                                
                                                                </table>
                                                                
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right">
                                                            
                                                            <table width="90%" cellpadding="0" cellspacing="0" border="0"  runat="server" id="tableLevel1" >
                                                            <tr>
                                                                <td class="separator_ver_notes">
                                                            
                                                                <asp:GridView ID="gvLevel2" BackColor="Transparent" runat="server" AutoGenerateColumns="false" OnRowDataBound="gvLevel2_RowDataBound" Width="100%" BorderWidth="0" GridLines="None" ShowHeader="false" ShowFooter="False" onrowcommand="gvLevel2_RowCommand">
                                                                    <Columns>
                                                                     
                            <asp:TemplateField>
                            <ItemTemplate>
                                                                            
                                                                            
                            
                            
                            <table align="left" width="100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td align="right">
                            <asp:HiddenField ID="hdnSchyrIdlevel2" runat="server" Value='<%#Eval("schyr_id")%>'/>
                          <asp:HiddenField ID="hdnMPIdlevel2" runat="server" Value='<%#Eval("sch_marking_period_id")%>'/>
                              <table width="100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="10%" valign="top" align="left">
                                    <table width="100%" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td class="separator_hor_notes">&nbsp;</td>
                                        </tr>
                                    </table>
                                    </td>
                                    <td width="90%">
                                    <table width="100%" cellpadding="0" cellspacing="0">
                            <tr>
                                <td rowspan="2" class="notes_left_content" valign="top">
                                                <img id="imgLevel2" runat="server" src="~/App_Themes/main/images/icon_minimize.png"  style="cursor:pointer;" />
                                </td>
                                <td>
                                    <table align="left" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td class="b_les_blue" valign="top" align="left">
                                                <table align="left">
                                                    <tr>
                                                        <%--<td align="left" valign="top">
                                                       
                                                        <asp:CheckBox ID="chk" runat="server" /></td>--%>
                                                        <td align="left">
                                                        <asp:Label CssClass="white_strong" ID="lblLevel2" runat="server" Text='<%#Eval("sch_mp_name")%>'></asp:Label>
                                                        </td>
                                                     </tr>
                                                 </table>
                                            </td>
                                            <td align="left" class="padding_gen_small">
                                                <table border="0" id="tableLevel2Icons" runat="server" cellspacing="0" cellpadding="0" align="left" >
                                                                    <tr>
                                                                        <td>
                                                                            <asp:ImageButton ID="ibtnAddlevel2" CausesValidation="false" runat="server" 
                                                                               ImageUrl="~/App_Themes/main/images/add.png" CommandName="AddPeriod" CommandArgument='<%# Eval("schyr_id").ToString() %>'/>
                                                                        </td>
                                                                        <td>
                                                                        <asp:Image ID="separator1level2" runat="server" ImageUrl="~/App_Themes/main/images/icon_separator.png" />                    
                                                                        </td>
                                                                        <td>
                                                                            <asp:ImageButton ID="ibtnEditlevel2" runat="server" 
                                                                                ImageUrl="~/App_Themes/main/images/edit.png" CausesValidation="False" CommandName="EditQuarterRecords" CommandArgument='<%# Eval("sch_marking_period_id").ToString() + "_" + Eval("schyr_id").ToString() %>'
                                                                                 />
                                                                        </td>
                                                                        <td>
                                                                             <asp:Image ID="separator2level2" runat="server" ImageUrl="~/App_Themes/main/images/icon_separator.png" />
                                                                        </td>
                                                                        <td>
                                                                            <asp:ImageButton ID="ibtnDeletelevel2" runat="server"  OnClientClick="if(!confirm('Are you sure ?')){return false;}" ImageUrl="~/App_Themes/main/images/delete.png" CausesValidation="False" CommandName="DeleteQuarter" CommandArgument='<%# Eval("sch_marking_period_id").ToString() + "_" + Eval("schyr_id").ToString()  + "_" + Eval("sch_mp_name").ToString()%>' />
                                                                        </td>
                                                                        <%--<td>
                                                                             <asp:Image ID="separator3" runat="server" ImageUrl="~/App_Themes/main/images/icon_separator.png" />
                                                                        </td>--%>
                                                                        <%--<td>
                                                                            <asp:ImageButton ID="ibtnDownLoadExcel" runat="server"  ImageUrl="~/App_Themes/main/images/download_excel.png" />
                                                                        </td>--%>
                                                                    </tr>
                                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td class="notes_blue_content" align="left">                        
                                    <table align="left" runat="server" id="tableLevel2Details" width="90%" cellpadding="5" cellspacing="0" >
                             <tr>
                                <td class="rcontent">
                                
                                    <asp:Literal ID="Literal25level2" runat="server" meta:resourcekey="ML_0001">Title</asp:Literal>
                                
                                 
                               </td>
                                <td>
                                    :
                                </td>
                                <td class="rcontent">
                            <asp:Label CssClass="blue_mid" ID="lblSchMPNamelevel2" runat="server" Text='<%#Eval("sch_mp_name")%>'></asp:Label>                          
                                </td>
                                <td class="rcontent">
                                
                                <asp:Literal ID="Literal24level2" runat="server" meta:resourcekey="ML_0002">Short Name</asp:Literal>
                                
                                 

                               </td>
                                <td>
                                    :
                                </td>
                                <td class="rcontent">
                            <asp:Label CssClass="blue_mid" ID="lblShortNamelevel2" runat="server" Text='<%#Eval("sch_mp_short_nm")%>'></asp:Label>                  
                                </td>
                            </tr>
                            <tr>
                               <td>
                               
                                 <asp:Literal ID="Literal23level2" runat="server" meta:resourcekey="ML_0003">Begin Date</asp:Literal>
                               
                                  
                               </td>
                               <td>
                                   :
                               </td>
                               <td>
                                   <asp:Label CssClass="blue_mid" ID="lblBeginsDatelevel2" runat="server" Text='<%#Eval("sch_mp_start_date") %>'></asp:Label>
                               </td>
                               <td>
                                <asp:Literal ID="Literal22level2" runat="server" meta:resourcekey="ML_0004">End Date</asp:Literal>
                               
                              
                               </td>
                               <td>
                               :
                               </td>
                               <td>
                                <asp:Label CssClass="blue_mid" ID="lblEndDatelevel2" runat="server" Text='<%#Eval("sch_mp_end_date")%>'></asp:Label>
                               
                               </td>
                            </tr>
                            <tr>
                               <td>
                                 <asp:Literal ID="Literal19level2" runat="server" meta:resourcekey="ML_0005">Grade Posting Begins</asp:Literal>
                               
                               
                               </td>
                               <td>
                               :
                               </td>
                               <td>
                                <asp:Label CssClass="blue_mid" ID="lblGPBeginsDatelevel2" runat="server" Text='<%#Eval("sch_mp_grd_start_date")%>'></asp:Label>
                               </td>
                               <td>
                               
                                <asp:Literal ID="Literal20level2" runat="server" meta:resourcekey="ML_0006">Grade Posting Ends</asp:Literal>
                               
                              
                               </td>
                               <td>
                                  :
                               </td>
                               <td>
                               <asp:Label CssClass="blue_mid" ID="lblGPEndDatelevel2" runat="server" Text='<%#Eval("sch_mp_grd_end_date")%>'></asp:Label>
                               
                               </td>  
                            </tr>
                            <tr>
                              <td>
                                 <asp:Literal ID="Literal21level2" runat="server" meta:resourcekey="ML_0007">Graded</asp:Literal> 
                               </td>
                               <td>
                                  :
                               </td>
                               <td>
                                <asp:HiddenField ID="hdnChkGradelevel2" runat="server" Value='<%#Eval("sch_mp_grading_ind")%>' />
                                 <asp:CheckBox ID="Chkgradelevel2" runat="server" Enabled="false" meta:resourcekey="Chkgrade"/> 
                               </td>
                               <td colspan="3"></td>
                            </tr>
                            
                        </table>
                                </td>
                            </tr>
                            <tr><td colspan="2" class="separator_ver_notes">
                                        <div class="clear_medium"></div>
                                        </td></tr>
                        </table>
                                    </td>
                                </tr>
                              </table>
                        
                                </td>
                              </tr>
                              <tr>
                                <td align="right">
                                       <table width="90%" cellpadding="0" cellspacing="0" border="0"  runat="server" id="tableLevel2" >
                                       <tr><td class="separator_ver_notes">                                              
                                  <asp:GridView ID="gvLevel3" OnRowDataBound="gvLevel3_RowDataBound" runat="server" AutoGenerateColumns="false"
                                    GridLines="None" Width="100%" ShowHeader="false" ShowFooter="False" onrowcommand="gvLevel3_RowCommand">
                                    <Columns>
              
                                    <asp:TemplateField>
                                    <ItemTemplate>


                            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td width="10%" align="left" valign="top">                           
                                    <table width="100%" cellpadding="0" cellspacing="0">
                                <tr> 
                                    <td class="separator_hor_notes">&nbsp;</td>
                                </tr>
                            </table>
                                </td>
                                <td width="90%">
                                    <table width="100%" align="right" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td rowspan="2" class="notes_left_content2" valign="top">
                                               <img id="imgLevel3" runat="server" src="~/App_Themes/main/images/icon_minimize.png" style="cursor:pointer;" />
                                            </td>
                                            <td>
                                                <table cellpadding="0" cellspacing="0" align="left">
                                                    <tr>
                                                        <td valign="top" align="left" class="b_les_grey">
                                                            <table align="left">
                                                                <tr>
                                                                  <%--<td>
                                                                    <asp:CheckBox ID="chk" runat="server" />
                                                                    
                                                                  </td>--%>
                                                                  <td>
                                                                    <asp:Label CssClass="white_strong" ID="lblLevel3" runat="server" Text='<%#Eval("sch_mp_name")%>'></asp:Label>
                                                                  </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                        <td align="left" class="padding_gen_small">
                                                            <table border="0" cellspacing="0" id="tableLevel3Icons" runat="server" cellpadding="0" align="left" >
                                                                                    <tr>
                                                                                        <%--<td>
                                                                                            <asp:ImageButton ID="ibtnAdd" CausesValidation="false" runat="server" 
                                                                                               ImageUrl="~/App_Themes/main/images/add.png" onclick="ibtnAdd_Click" />
                                                                                        </td>--%>
                                                                                        <%--<td>
                                                                                        <asp:Image ID="separator1" runat="server" ImageUrl="~/App_Themes/main/images/icon_separator.png" />                    
                                                                                        </td>--%>
                                                                                        <td>
                                                                                            <asp:ImageButton ID="ibtnEditlevel3" runat="server" 
                                                                                                ImageUrl="~/App_Themes/main/images/edit.png" CausesValidation="False" CommandName="EditPeriodRecord" CommandArgument='<%# Eval("sch_marking_period_id").ToString() + "_" + Eval("schyr_id").ToString() %>'/>
                                                                                        </td>
                                                                                        <td>
                                                                                             <asp:Image ID="separator2level3" runat="server" ImageUrl="~/App_Themes/main/images/icon_separator.png" />
                                                                                        </td>
                                                                                        <td>
                                                                                            <asp:ImageButton ID="ibtnDeletelevel3" runat="server"  OnClientClick="if(!confirm('Are you sure ?')){return false;}" ImageUrl="~/App_Themes/main/images/delete.png"  CausesValidation="False" CommandName="DeletePeriod" CommandArgument='<%# Eval("sch_marking_period_id").ToString() + "_" + Eval("schyr_id").ToString() %>'/>
                                                                                        </td>
                                                                                        <%--<td>
                                                                                             <asp:Image ID="separator3" runat="server" ImageUrl="~/App_Themes/main/images/icon_separator.png" />
                                                                                        </td>--%>
                                                                                        <%--<td>
                                                                                            <asp:ImageButton ID="ibtnDownLoadExcel" runat="server"  ImageUrl="~/App_Themes/main/images/download_excel.png" />
                                                                                        </td>--%>
                                                                                    </tr>
                                                                                </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="grey_b_content">
                                                <table class="padding_gen_small"  id="tableLevel3" runat="server" align="left" width="100%" cellpadding="4" cellspacing="0" >
                                            <tr>
                                        <td colspan="6" align="left">
                                         <asp:HiddenField ID="hdnSchyrIdlevel3" runat="server" Value='<%#Eval("schyr_id")%>'/>
                                          <asp:HiddenField ID="hdnMPIdlevel3" runat="server" Value='<%#Eval("sch_marking_period_id")%>'/>
                                        </td>
                                        </tr>
                                             <tr align="left">
                                                <td class="rcontent">
                                                
                                                    <asp:Literal ID="Literal25level3" runat="server" meta:resourcekey="ML_0001">Title</asp:Literal>
                                
                                                
                                                  

                                               </td>
                                                <td>
                                                    :
                                                </td>
                                                <td class="rcontent">
                                            <asp:Label CssClass="blue_mid" ID="lblSchMPNamelevel3" runat="server" Text='<%#Eval("sch_mp_name")%>'></asp:Label>                          
                                                </td>
                                                <td class="rcontent">
                                                <asp:Literal ID="Literal24level3" runat="server" meta:resourcekey="ML_0002">Short Name</asp:Literal>
                                                
                                               

                                               </td>
                                                <td>
                                                    :
                                                </td>
                                                <td class="rcontent">
                                            <asp:Label CssClass="blue_mid" ID="lblShortNamelevel3" runat="server" Text='<%#Eval("sch_mp_short_nm")%>'></asp:Label>                    
                                                </td>
                                            </tr>
                                            <tr align="left">
                                               <td>
                                                 <asp:Literal ID="Literal23level3" runat="server" meta:resourcekey="ML_0003">Begin Date</asp:Literal>
                                               
                                               
                                                  
                                               </td>
                                               <td>
                                                   :
                                               </td>
                                               <td>
                                                   <asp:Label CssClass="blue_mid" ID="lblBeginsDatelevel3" runat="server" Text='<%#Eval("sch_mp_start_date")%>'></asp:Label>
                                                   
                                               </td>
                                               <td>
                                                  <asp:Literal ID="Literal22level3" runat="server" meta:resourcekey="ML_0004">End Date</asp:Literal>
                                               
                                               
                                               </td>
                                               <td>
                                               :
                                               </td>
                                               <td>
                                                <asp:Label CssClass="blue_mid" ID="lblEndDatelevel3" runat="server" Text='<%#Eval("sch_mp_end_date")%>'></asp:Label>
                                               
                                               </td>
                                            </tr>
                                            <tr align="left">
                                               <td>
                                               
                                                 <asp:Literal ID="Literal19level3" runat="server" meta:resourcekey="ML_0005">Grade Posting Begins</asp:Literal>
                                                
                                               </td>
                                               <td>
                                               :
                                               </td>
                                               <td>
                                                <asp:Label CssClass="blue_mid" ID="lblGPBeginsDatelevel3" runat="server" Text='<%#Eval("sch_mp_grd_start_date")%>'></asp:Label>
                                                
                                               </td>
                                               <td>
                                               
                                                 <asp:Literal ID="Literal20level3" runat="server" meta:resourcekey="ML_0006">Grade Posting Ends</asp:Literal>
                                              
                                               </td>
                                               <td>
                                                  :
                                               </td>
                                               <td>
                                               <asp:Label CssClass="blue_mid" ID="lblGPEndDatelevel3" runat="server" Text='<%#Eval("sch_mp_grd_end_date")%>'></asp:Label>
                                                 
                                               </td>  
                                            </tr>
                                            <tr align="left">
                                              <td>
                                              
                                                <asp:Literal ID="Literal21level3" runat="server" meta:resourcekey="ML_0007">Graded</asp:Literal>
                                              
                                                
                                               </td>
                                               <td>
                                                  :
                                               </td>
                                               <td>
                                                <asp:HiddenField ID="hdnChkGradelevel3" runat="server" Value='<%#Eval("sch_mp_grading_ind")%>' />
                                                 <asp:CheckBox ID="Chkgradelevel3" runat="server" Enabled="false" meta:resourcekey="Chkgrade"/> 
                                               </td>
                                               <td colspan="3"></td>
                                            </tr>
                                        </table>
                                        
                                            </td>
                                        </tr>
                                        <tr><td colspan="2">
                                        <div class="clear_medium"></div>
                                        </td></tr>
                                    </table>
                                </td>
                            </tr>
                            </table>

                        
                      
                     
                    
                        
                        
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle Font-Bold="True" BackColor="Transparent" ForeColor="White"
                HorizontalAlign="Center" VerticalAlign="Middle" />
            <RowStyle BackColor="Transparent" HorizontalAlign="Center" VerticalAlign="Middle" />
            <AlternatingRowStyle BackColor="Transparent" HorizontalAlign="Center"
                VerticalAlign="top" />
            <FooterStyle />
        </asp:GridView>
                                   </td></tr></table>                                                        
                                                                                        </td>
                                                                                    </tr>
                                                                                </table>
                                                                            </ItemTemplate>
                                                                            
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                    <HeaderStyle Font-Bold="True" BackColor="#447ec0" ForeColor="White"
                HorizontalAlign="Center" VerticalAlign="Middle" />
            <RowStyle BackColor="Transparent" HorizontalAlign="Center" VerticalAlign="Middle" />
            <AlternatingRowStyle BackColor="Transparent" HorizontalAlign="Center"
                VerticalAlign="top" />
                                                                </asp:GridView>
                                                                </td></tr></table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ItemTemplate>
                                                
                                                
                                            </asp:TemplateField>
                                           
                                        </Columns>
                                        <HeaderStyle Font-Bold="True" BackColor="#447ec0" ForeColor="White"
                HorizontalAlign="Center" VerticalAlign="Middle" />
            <RowStyle BackColor="Transparent" HorizontalAlign="Center" VerticalAlign="Middle" />
            <AlternatingRowStyle BackColor="Transparent" HorizontalAlign="Center"
                VerticalAlign="top" />
                                        <FooterStyle />
                                        
                                    </asp:GridView>
                                </td></tr></table>
                                <%-- <cc1:CollapsiblePanelExtender ID="cpe" runat="Server" TargetControlID="pnlOrders" CollapsedSize="0" Collapsed="True" ExpandControlID="pnlOrders" CollapseControlID="pnlOrders" AutoCollapse="False" AutoExpand="False" ScrollContents="false" ImageControlID="imgCollapsible" ExpandedImage="~/minus.gif" CollapsedImage="~/plus.gif" ExpandDirection="Vertical" ></cc1:CollapsiblePanelExtender>  --%> 
                                </td>
                            </tr>
                        </table>
               
                         
                    </ItemTemplate>
                    
<ItemStyle Width="100%"></ItemStyle>
                    
                </asp:TemplateField>
                
            </Columns>
            <HeaderStyle Font-Bold="True" BackColor="#447ec0" ForeColor="White"
                HorizontalAlign="Center" VerticalAlign="Middle" />
            <RowStyle BackColor="Transparent" HorizontalAlign="Center" VerticalAlign="Middle" />
            <AlternatingRowStyle BackColor="Transparent" HorizontalAlign="Center"
                VerticalAlign="top" />
            <FooterStyle />
        </asp:GridView>
        <asp:HiddenField ID="hdnMarkingPeriodId" runat="server" />
        <asp:HiddenField ID="hdnschyrid" runat="server" />
        <asp:HiddenField ID="hdnParentType" runat="server" />
        
        
        
        
         <asp:Panel ID="panelmsg" runat="server" style="display:none;" CssClass="ModalPopup" Width="250" Height="130">
            
                    
                    <div class="modal_bg" style="height:110px;">
                    
                        <table align="left" cellpadding="4" cellspacing="0" width="100%">                   
                            <tr>
                                <td>
                                
                                <asp:Label ID="lblmsg" runat="server" meta:resourcekey="lblmsg"></asp:Label>
                                
                                </td>
                            </tr>
                            
                            <tr><td align="center"><div class="clear_m"></div><div class="separator_hor"></div><asp:Button ID="btnok" runat="server" CssClass="modalbtn_active" Text="Ok" CausesValidation="false" meta:resourcekey="btnok" OnClientClick="hidePopup('ctl00_ContentPlaceHolder1_ModalPopupExtender3')"/></td></tr>
                        </table>
                    
                        
                    </div>
        </asp:Panel>
          
          <cc1:ModalPopupExtender ID="ModalPopupExtender3" runat="server" BackgroundCssClass="Inactive"
            TargetControlID="hdnmsg" PopupControlID="panelmsg" Enabled="false"/>  
           <asp:HiddenField ID="hdnmsg" runat="server" />
            </div>
            </td>   
        </tr> 
        
    </table>
  
</asp:Content>


